<?php

namespace Home\Controller;

class BangdanController extends AdminController
{
	public function index(){
		$click=M('Book')->order('click desc')->limit(3)->select();
		// var_dump($click);exit;

		$list=M('Book')->order('click desc')->select();
		$recommend=M('Book')->order('recommend desc')->select();
		// var_dump($list);exit;
		// 
		$this->assign("click",$click);
		$this->assign("recommend",$recommend);
		$this->assign("list",$list);
		$this->assign("title","乐阅网");
		$this->display("Bangdan/index");
	}


}

